﻿using System.Collections.ObjectModel;

using Sunyi.Project.WebPoint.DataContract;

namespace Sunyi.Project.WebPoint.DataAccessController
{
    public partial class IssueDaoController
    {
        public int SearchCount(string issueTitle, string status, string ownerName, string creatorName, bool isActive)
        {
            return dao.SearchCount(issueTitle, status, ownerName, creatorName, isActive);
        }

        public Collection<Issue> Search(string issueTitle, string status, string ownerName, string creatorName, bool isActive, int pageIndex, int pageSize)
        {
            return dao.Search(issueTitle, status, ownerName, creatorName, isActive, pageIndex, pageSize);
        }
    }
}
